<?php

use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generateUrl new
| model instances for testing / seeding your application's database.
|
*/
/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Panx\PurchaseDevice::class, function (Faker $faker) {
    $stock = $faker->numberBetween(100, 1000);

    return [
        'device_id'      => 0, // default null, you should edit as you wish
        'sku'            => $stock,
        'stock'          => $stock,
        'buyer'          => $faker->name,
        'purchase_at'    => now()->subDay(),
    ];
});
